#include  <cstdio>

bool arr[10001];

void fn(int i)
{
	int sum = i;
	int n;
	while(i!=0)
	{
		n = i%10;
		sum += n;
		i /= 10;
	}

	arr[sum] = true;
}

int main(int argc, char *argv[])
{
	int i = 1;
	while( i < 10000 )
	{
		fn(i);
		i++;
	}

	for( int i = 1; i < 10001 ; ++i )
		if(!arr[i])
			printf("%d\n",i);
	
}
